package com.tools.traceTool
{
	import mx.controls.Text;
	
	public class Remote
	{
		protected var isRawText:Boolean;
		protected var style:String;
		protected var tf:Object;
		protected function addText(className:String,...args):void{}
		
		public function Remote(){}
		//	raw ...	raw writeing text
		public function raw(text:String):void{isRawText=true;tf.htmlText='<p class="n">'+text+'</p>'+tf.htmlText;isRawText=false;}
		//	use for normal
		public function onTrace(className:String,...args):void{style='n';	addText(className,args);}
		//	use for highlight
		public function hTrace(className:String,...args):void{style='h';	addText(className,args);}
		//	use for warnings (orange)
		public function wTrace(className:String,...args):void{style='w';	addText(className,args);}
		//	use for errors (red)
		public function eTrace(className:String,...args):void{style='e';	addText(className,args);}
		//	green	text
		public function gTrace(className:String,...args):void{style='g';	addText(className,args);}
		//	blue	text
		public function bTrace(className:String,...args):void{style='b';	addText(className,args);}
		//	yellow text
		public function yTrace(className:String,...args):void{style='y';	addText(className,args);}
		//	magenta text
		public function mTrace(className:String,...args):void{style='m';	addText(className,args);}
		//	cyan	text
		public function cTrace(className:String,...args):void{style='c';	addText(className,args);}
		//	silver	text (gray)
		public function sTrace(className:String,...args):void{style='s';	addText(className,args);}
	}
}